package com.mybatis.lo.executor;

import com.mybatis.lo.config.Configuration;
import com.mybatis.lo.config.MappedStatement;
import lombok.AllArgsConstructor;

import java.util.List;

/**
 * 二级缓存执行器，可通过代理模式，传入执行器进行代执行，本执行器只关心缓存操作
 * @author zhangbh
 * 2023-06-16 08:39
 **/
@AllArgsConstructor
public class CachingExecutor implements Executor {

    private Executor executor;

    @Override
    public <T> List<T> queryList(MappedStatement statement, Configuration configuration, Object param) {
        // todo 暂不进行实现
        return executor.queryList(statement, configuration, param);
    }
}
